Skip to content

Merge latest react.dev #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,041 commits into from
Apr 24, 2023
Merged

Merge latest react.dev #343

merged 1,041 commits into from
Apr 24, 2023

Conversation

rickhanlonii
Copy link
Member

Catches up the repo to set main to the latest react.dev content. In combination with #342, we will move the legacy site over to the legacy branch.

See this comment for context.

gaearon and others added 30 commits December 14, 2022 20:22
* [Beta] useLayoutEffect API

* more

* tweak

* bla
* [Beta] useEvent -> useEffectEvent

* tweak
Proposing a minor grammatical correction on the useEffect API documentation page for triggering an animation example section.
The section under consideration 'Removing unnecessary function dependencies' should use the text 'createOptions function' instead of 'options object' to match the given example correctly.
The 'options object' text is being used correctly for the previous section which talks about 'Removing unnecessary object dependencies' however, it must be updated for this section.
The serverUrl variable should be moved inside the component and can be stored as a state to indicate that it's a reactive variable and will be highlighted as such by the linter. Previously the serverUrl variable was stored outside the component function body thus making it a non-reactive value and so it shouldn't have been highlighted by the linter as a useEffect dependency as shown in the concerned example.
* <input>

* Fix typo

* tweak

* separate props

* reword

* typos

* compress

* tweaks

* Add more

* more

* shorter

* twk

* more readable

* fix

* oops

* oops

* <textarea>

* <progress>

* <select>, <progress>

* upd

* <option>

* wip common

* wip

* more

* Fix onSelect desc

* index

* stub events

* events

* twk

* all events
* Copy over tutorial from old website

Fixed up MDX syntax (self-closing `<br>` and `<img>`, and one `style`
attribute)

* wip

* more wip

* Move tutorial to be consistent with new beta docs structure

* remove HTML comments causing Vercel rendering issues

* Fixed all fixme's, minor clarity improvments, updated code links to codesandbox

* first half of tutorial re-write draft

* Finish tutorial rewrite draft

* Fix some formatting issues

* Migrate tutorial back to JavaScript to fix Sandpack errors

* Fix minor mistakes, formatting, code bugs, clean up images

* Fix empty board image size

* Fix image size and code highlighting issues

* Incorporate feedback from Dan and Sean

* edits (wip)

* edit

* edits

* Update beta/src/content/learn/tutorial-tic-tac-toe.md

Co-authored-by: Strek <ssharishkumar@gmail.com>

* tweak

Co-authored-by: Sophie Alpert <git@sophiebits.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Co-authored-by: Strek <ssharishkumar@gmail.com>
* [Beta] Move Reference before Usage

* above -> below
* [Beta] APIs -> Reference

* oops
Aleksandar15 and others added 27 commits April 6, 2023 14:23
* Fix casing for consistency

There's 5 instances in this document in which the casing of a file name
begins with lower case, which makes it inconsisnent both with the page
and the entire tutorial.

* Fix improper idiom usage

The phrase "most of the times" is incorrect and would only make sense
in the context of a larger sentence. The phrase is actually "most of the
time" and is used in place of "usually".
Update referencing-values-with-refs.md
Fix: typo in "Animation Event Handler function" example
* Legacy API, Component: fix href for getDerivedStateFromProps

* Legacy API, Component: fix href for getDerivedStateFromProps
* fix: url

* fix: check if it works

* fix

* fix

* use legacy link

* chore: add to vercel.json
* Fix minor grammar mistakes

* Apply suggestions from code review

---------

Co-authored-by: Sophie Alpert <git@sophiebits.com>
* Add site config with domain name

* Add <meta> tags for languages

* Move legacy redirect out of vercel config

This lets us give it a more specific subdomain per lang.

* Support sites with no legacy

* Fix types

* Undo unrelated change
# Conflicts:
#	.gitignore
#	README.md
#	content/blog/2013-06-02-jsfiddle-integration.md
#	content/blog/2013-06-05-why-react.md
#	content/blog/2013-06-21-react-v0-3-3.md
#	content/blog/2013-07-03-community-roundup-4.md
#	content/blog/2013-07-26-react-v0-4-1.md
#	content/blog/2013-08-05-community-roundup-6.md
#	content/blog/2013-08-19-use-react-and-jsx-in-python-applications.md
#	content/blog/2013-08-26-community-roundup-7.md
#	content/blog/2013-10-29-react-v0-5-1.md
#	content/blog/2013-11-06-community-roundup-10.md
#	content/blog/2014-02-05-community-roundup-15.md
#	content/blog/2014-04-04-reactnet.md
#	content/blog/2014-05-06-flux.md
#	content/blog/2014-06-27-community-roundup-19.md
#	content/blog/2014-07-30-flux-actions-and-the-dispatcher.md
#	content/blog/2014-09-24-testing-flux-applications.md
#	content/blog/2015-03-30-community-roundup-26.md
#	content/blog/2015-09-10-react-v0.14-rc1.md
#	content/blog/2015-10-07-react-v0.14.md
#	content/blog/2017-11-28-react-v16.2.0-fragment-support.md
#	content/blog/2017-12-07-introducing-the-react-rfc-process.md
#	content/blog/2018-10-01-create-react-app-v2.md
#	content/blog/2018-10-23-react-v-16-6.md
#	content/blog/2019-02-06-react-v16.8.0.md
#	content/blog/2019-02-23-is-react-translated-yet.md
#	content/blog/2019-11-06-building-great-user-experiences-with-concurrent-mode-and-suspense.md
#	content/blog/2020-09-22-introducing-the-new-jsx-transform.md
#	content/community/courses.md
#	content/community/examples.md
#	content/community/nav.yml
#	content/community/podcasts.md
#	content/docs/accessibility.md
#	content/docs/add-react-to-a-website.md
#	content/docs/addons-animation.md
#	content/docs/addons-create-fragment.md
#	content/docs/addons-perf.md
#	content/docs/addons-pure-render-mixin.md
#	content/docs/addons-shallow-compare.md
#	content/docs/addons-shallow-renderer.md
#	content/docs/addons-test-utils.md
#	content/docs/addons-two-way-binding-helpers.md
#	content/docs/addons-update.md
#	content/docs/addons.md
#	content/docs/cdn-links.md
#	content/docs/code-splitting.md
#	content/docs/codebase-overview.md
#	content/docs/components-and-props.md
#	content/docs/composition-vs-inheritance.md
#	content/docs/conditional-rendering.md
#	content/docs/context.md
#	content/docs/create-a-new-react-app.md
#	content/docs/cross-origin-errors.md
#	content/docs/design-principles.md
#	content/docs/error-boundaries.md
#	content/docs/faq-ajax.md
#	content/docs/faq-build.md
#	content/docs/faq-functions.md
#	content/docs/faq-internals.md
#	content/docs/faq-state.md
#	content/docs/faq-structure.md
#	content/docs/faq-styling.md
#	content/docs/faq-versioning.md
#	content/docs/forms.md
#	content/docs/forwarding-refs.md
#	content/docs/fragments.md
#	content/docs/getting-started.md
#	content/docs/handling-events.md
#	content/docs/hello-world.md
#	content/docs/higher-order-components.md
#	content/docs/hooks-custom.md
#	content/docs/hooks-effect.md
#	content/docs/hooks-faq.md
#	content/docs/hooks-intro.md
#	content/docs/hooks-overview.md
#	content/docs/hooks-reference.md
#	content/docs/hooks-rules.md
#	content/docs/hooks-state.md
#	content/docs/implementation-notes.md
#	content/docs/integrating-with-other-libraries.md
#	content/docs/introducing-jsx.md
#	content/docs/jsx-in-depth.md
#	content/docs/lifting-state-up.md
#	content/docs/lists-and-keys.md
#	content/docs/nav.yml
#	content/docs/optimizing-performance.md
#	content/docs/portals.md
#	content/docs/react-without-es6.md
#	content/docs/react-without-jsx.md
#	content/docs/reconciliation.md
#	content/docs/reference-dom-elements.md
#	content/docs/reference-events.md
#	content/docs/reference-glossary.md
#	content/docs/reference-javascript-environment-requirements.md
#	content/docs/reference-profiler.md
#	content/docs/reference-react-component.md
#	content/docs/reference-react.md
#	content/docs/reference-test-renderer.md
#	content/docs/refs-and-the-dom.md
#	content/docs/release-channels.md
#	content/docs/render-props.md
#	content/docs/rendering-elements.md
#	content/docs/state-and-lifecycle.md
#	content/docs/static-type-checking.md
#	content/docs/strict-mode.md
#	content/docs/testing-environments.md
#	content/docs/testing-recipes.md
#	content/docs/testing.md
#	content/docs/thinking-in-react.md
#	content/docs/typechecking-with-proptypes.md
#	content/docs/uncontrolled-components.md
#	content/docs/web-components.md
#	content/footerNav.yml
#	content/headerNav.yml
#	content/home/examples/a-component-using-external-plugins.js
#	content/home/examples/a-component-using-external-plugins.md
#	content/home/examples/a-simple-component.js
#	content/home/examples/a-simple-component.md
#	content/home/examples/a-stateful-component.js
#	content/home/examples/a-stateful-component.md
#	content/home/examples/an-application.js
#	content/home/examples/an-application.md
#	content/home/marketing/component-based.md
#	content/home/marketing/declarative.md
#	content/home/marketing/learn-once-write-anywhere.md
#	content/tutorial/nav.yml
#	content/tutorial/tutorial.md
#	content/warnings/dont-call-proptypes.md
#	content/warnings/invalid-aria-prop.md
#	content/warnings/legacy-factories.md
#	content/warnings/refs-must-have-owner.md
#	content/warnings/special-props.md
#	plugins/gatsby-transformer-versions-yaml/create-redirects.js
#	src/components/CodeEditor/CodeEditor.js
#	src/components/CodeExample/CodeExample.js
#	src/components/ErrorDecoder/ErrorDecoder.js
#	src/components/FeedbackForm/FeedbackForm.js
#	src/components/LayoutFooter/Footer.js
#	src/components/LayoutHeader/DocSearch.js
#	src/components/LayoutHeader/Header.js
#	src/components/MarkdownPage/MarkdownPage.js
#	src/components/TitleAndMetaTags/TitleAndMetaTags.js
#	src/content/blog/2020/12/21/data-fetching-with-react-server-components.md
#	src/content/blog/2021/06/08/the-plan-for-react-18.md
#	src/content/community/conferences.md
#	src/content/community/index.md
#	src/content/community/meetups.md
#	src/content/warnings/invalid-hook-call-warning.md
#	src/content/warnings/unknown-prop.md
#	src/pages/404.js
#	src/pages/index.js
#	yarn.lock
@huongphamx
Copy link

huongphamx commented Apr 24, 2023

Hi @rickhanlonii , thanks for the update. I'm excited to help with the new translation.

@gaearon gaearon merged commit ef1dd03 into main Apr 24, 2023
@rickhanlonii rickhanlonii deleted the merge-react-dev branch April 24, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.